package com.android.ddfafu.ui.Switch;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProviders;
import com.android.ddfafu.R;
import com.android.ddfafu.activity.Login_activity;

public class SwitchFragment extends Fragment {

    private SwitchViewModel switchViewModel;

    public View onCreateView(@NonNull LayoutInflater inflater,
            ViewGroup container, Bundle savedInstanceState) {
        switchViewModel =
                ViewModelProviders.of(this).get(SwitchViewModel.class);
        View root = inflater.inflate(R.layout.fragment_send, container, false);

        Intent intent = new Intent(getActivity(), Login_activity.class);
        intent.putExtra("SWITCH","switch");
        startActivity(intent);

        return root;
    }
}